package gui.obu.alerts;

public class DistanceAlert implements AbstractAlert {

	private Integer currentSpeed;
	private Double currentDistance;
	private Double safeDistance;
	
	public DistanceAlert() {
		// empty
	}
	
	public DistanceAlert(Integer currentSpeed, Double currentDistance, Double safeDistance) {
		this.currentSpeed = currentSpeed;
		this.currentDistance = currentDistance;
		this.safeDistance = safeDistance;
	}
	
	public Integer getCurrentSpeed() {
		return currentSpeed;
	}
	
	public Double getCurrentDistance() {
		return currentDistance;
	}
	
	public Double getSafeDistance() {
		return safeDistance;
	}
	
	@Override
	public String toString() {
		return "Following Distance Alert:\n\tCurrent Speed: " + currentSpeed + 
			"\n\tCurrent Distance: " + currentDistance + "\n\tSafe Distance" +
			safeDistance;
	}
}
